package com.boatAnchorAssistant.service.repository.impl;

import com.boatAnchorAssistant.pojo.entity.UserOperationLog;
import com.boatAnchorAssistant.pojo.vo.userOperationLog.GetOperationTypeListVo;
import com.boatAnchorAssistant.service.mapper.UserOperationLogMapper;
import com.boatAnchorAssistant.service.repository.in.UserOperationLogRepository;
import nirvana.core.repository.Repository;
import org.springframework.stereotype.Service;
import com.boatAnchorAssistant.pojo.dto.userOperationLog.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * 【描 述】：
 * 【环 境】：J2SE
 * 【详 细】：
 *
 */
@Service
public class UserOperationLogRepositoryImpl extends Repository<UserOperationLogMapper, UserOperationLog> implements UserOperationLogRepository {

    private final UserOperationLogMapper mapper;

    public UserOperationLogRepositoryImpl(UserOperationLogMapper mapper) {
        this.mapper = mapper;
    }

    /**
     * 搜索用户操作日志
     * @param dto
     * @return
     */
    @Override
    public Page<UserOperationLog> selectUserOperationLog(SelectUserOperationLogDto dto) {
        return mapper.selectUserOperationLog(dto);
    }

    /**
     * @return
     */
    @Override
    public List<GetOperationTypeListVo> getOperationTypeList() {
        return mapper.getOperationTypeList();
    }

}